package com.community.properties;

import lombok.AllArgsConstructor;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;



@Data
@Component
@ConfigurationProperties(prefix = "community.alioss") // 添加这个注解
public class AliyunOssProperties {
    private String endpoint;
    private String accessKeyId; // 与YAML中的access-key-id自动匹配
    private String accessKeySecret; // 与YAML中的access-key-secret自动匹配
    private String bucketName; // 与YAML中的bucket-name自动匹配

    private String folder = "";
    private long expireTime = 360000;
}